﻿#ifndef __MISC_BINARY_H__
#define __MISC_BINARY_H__

#define B0 0U
#define B00 0U
#define B000 0U
#define B0000 0U
#define B00000 0U
#define B000000 0U
#define B0000000 0U
#define B00000000 0U
#define B1 1U
#define B01 1U
#define B001 1U
#define B0001 1U
#define B00001 1U
#define B000001 1U
#define B0000001 1U
#define B00000001 1U
#define B10 2U
#define B010 2U
#define B0010 2U
#define B00010 2U
#define B000010 2U
#define B0000010 2U
#define B00000010 2U
#define B11 3U
#define B011 3U
#define B0011 3U
#define B00011 3U
#define B000011 3U
#define B0000011 3U
#define B00000011 3U
#define B100 4U
#define B0100 4U
#define B00100 4U
#define B000100 4U
#define B0000100 4U
#define B00000100 4U
#define B101 5U
#define B0101 5U
#define B00101 5U
#define B000101 5U
#define B0000101 5U
#define B00000101 5U
#define B110 6U
#define B0110 6U
#define B00110 6U
#define B000110 6U
#define B0000110 6U
#define B00000110 6U
#define B111 7U
#define B0111 7U
#define B00111 7U
#define B000111 7U
#define B0000111 7U
#define B00000111 7U
#define B1000 8U
#define B01000 8U
#define B001000 8U
#define B0001000 8U
#define B00001000 8U
#define B1001 9U
#define B01001 9U
#define B001001 9U
#define B0001001 9U
#define B00001001 9U
#define B1010 10U
#define B01010 10U
#define B001010 10U
#define B0001010 10U
#define B00001010 10U
#define B1011 11U
#define B01011 11U
#define B001011 11U
#define B0001011 11U
#define B00001011 11U
#define B1100 12U
#define B01100 12U
#define B001100 12U
#define B0001100 12U
#define B00001100 12U
#define B1101 13U
#define B01101 13U
#define B001101 13U
#define B0001101 13U
#define B00001101 13U
#define B1110 14U
#define B01110 14U
#define B001110 14U
#define B0001110 14U
#define B00001110 14U
#define B1111 15U
#define B01111 15U
#define B001111 15U
#define B0001111 15U
#define B00001111 15U
#define B10000 16U
#define B010000 16U
#define B0010000 16U
#define B00010000 16U
#define B10001 17U
#define B010001 17U
#define B0010001 17U
#define B00010001 17U
#define B10010 18U
#define B010010 18U
#define B0010010 18U
#define B00010010 18U
#define B10011 19U
#define B010011 19U
#define B0010011 19U
#define B00010011 19U
#define B10100 20U
#define B010100 20U
#define B0010100 20U
#define B00010100 20U
#define B10101 21U
#define B010101 21U
#define B0010101 21U
#define B00010101 21U
#define B10110 22U
#define B010110 22U
#define B0010110 22U
#define B00010110 22U
#define B10111 23U
#define B010111 23U
#define B0010111 23U
#define B00010111 23U
#define B11000 24U
#define B011000 24U
#define B0011000 24U
#define B00011000 24U
#define B11001 25U
#define B011001 25U
#define B0011001 25U
#define B00011001 25U
#define B11010 26U
#define B011010 26U
#define B0011010 26U
#define B00011010 26U
#define B11011 27U
#define B011011 27U
#define B0011011 27U
#define B00011011 27U
#define B11100 28U
#define B011100 28U
#define B0011100 28U
#define B00011100 28U
#define B11101 29U
#define B011101 29U
#define B0011101 29U
#define B00011101 29U
#define B11110 30U
#define B011110 30U
#define B0011110 30U
#define B00011110 30U
#define B11111 31U
#define B011111 31U
#define B0011111 31U
#define B00011111 31U
#define B100000 32U
#define B0100000 32U
#define B00100000 32U
#define B100001 33U
#define B0100001 33U
#define B00100001 33U
#define B100010 34U
#define B0100010 34U
#define B00100010 34U
#define B100011 35U
#define B0100011 35U
#define B00100011 35U
#define B100100 36U
#define B0100100 36U
#define B00100100 36U
#define B100101 37U
#define B0100101 37U
#define B00100101 37U
#define B100110 38U
#define B0100110 38U
#define B00100110 38U
#define B100111 39U
#define B0100111 39U
#define B00100111 39U
#define B101000 40U
#define B0101000 40U
#define B00101000 40U
#define B101001 41U
#define B0101001 41U
#define B00101001 41U
#define B101010 42U
#define B0101010 42U
#define B00101010 42U
#define B101011 43U
#define B0101011 43U
#define B00101011 43U
#define B101100 44U
#define B0101100 44U
#define B00101100 44U
#define B101101 45U
#define B0101101 45U
#define B00101101 45U
#define B101110 46U
#define B0101110 46U
#define B00101110 46U
#define B101111 47U
#define B0101111 47U
#define B00101111 47U
#define B110000 48U
#define B0110000 48U
#define B00110000 48U
#define B110001 49U
#define B0110001 49U
#define B00110001 49U
#define B110010 50U
#define B0110010 50U
#define B00110010 50U
#define B110011 51U
#define B0110011 51U
#define B00110011 51U
#define B110100 52U
#define B0110100 52U
#define B00110100 52U
#define B110101 53U
#define B0110101 53U
#define B00110101 53U
#define B110110 54U
#define B0110110 54U
#define B00110110 54U
#define B110111 55U
#define B0110111 55U
#define B00110111 55U
#define B111000 56U
#define B0111000 56U
#define B00111000 56U
#define B111001 57U
#define B0111001 57U
#define B00111001 57U
#define B111010 58U
#define B0111010 58U
#define B00111010 58U
#define B111011 59U
#define B0111011 59U
#define B00111011 59U
#define B111100 60U
#define B0111100 60U
#define B00111100 60U
#define B111101 61U
#define B0111101 61U
#define B00111101 61U
#define B111110 62U
#define B0111110 62U
#define B00111110 62U
#define B111111 63U
#define B0111111 63U
#define B00111111 63U
#define B1000000 64U
#define B01000000 64U
#define B1000001 65U
#define B01000001 65U
#define B1000010 66U
#define B01000010 66U
#define B1000011 67U
#define B01000011 67U
#define B1000100 68U
#define B01000100 68U
#define B1000101 69U
#define B01000101 69U
#define B1000110 70U
#define B01000110 70U
#define B1000111 71U
#define B01000111 71U
#define B1001000 72U
#define B01001000 72U
#define B1001001 73U
#define B01001001 73U
#define B1001010 74U
#define B01001010 74U
#define B1001011 75U
#define B01001011 75U
#define B1001100 76U
#define B01001100 76U
#define B1001101 77U
#define B01001101 77U
#define B1001110 78U
#define B01001110 78U
#define B1001111 79U
#define B01001111 79U
#define B1010000 80U
#define B01010000 80U
#define B1010001 81U
#define B01010001 81U
#define B1010010 82U
#define B01010010 82U
#define B1010011 83U
#define B01010011 83U
#define B1010100 84U
#define B01010100 84U
#define B1010101 85U
#define B01010101 85U
#define B1010110 86U
#define B01010110 86U
#define B1010111 87U
#define B01010111 87U
#define B1011000 88U
#define B01011000 88U
#define B1011001 89U
#define B01011001 89U
#define B1011010 90U
#define B01011010 90U
#define B1011011 91U
#define B01011011 91U
#define B1011100 92U
#define B01011100 92U
#define B1011101 93U
#define B01011101 93U
#define B1011110 94U
#define B01011110 94U
#define B1011111 95U
#define B01011111 95U
#define B1100000 96U
#define B01100000 96U
#define B1100001 97U
#define B01100001 97U
#define B1100010 98U
#define B01100010 98U
#define B1100011 99U
#define B01100011 99U
#define B1100100 100U
#define B01100100 100U
#define B1100101 101U
#define B01100101 101U
#define B1100110 102U
#define B01100110 102U
#define B1100111 103U
#define B01100111 103U
#define B1101000 104U
#define B01101000 104U
#define B1101001 105U
#define B01101001 105U
#define B1101010 106U
#define B01101010 106U
#define B1101011 107U
#define B01101011 107U
#define B1101100 108U
#define B01101100 108U
#define B1101101 109U
#define B01101101 109U
#define B1101110 110U
#define B01101110 110U
#define B1101111 111U
#define B01101111 111U
#define B1110000 112U
#define B01110000 112U
#define B1110001 113U
#define B01110001 113U
#define B1110010 114U
#define B01110010 114U
#define B1110011 115U
#define B01110011 115U
#define B1110100 116U
#define B01110100 116U
#define B1110101 117U
#define B01110101 117U
#define B1110110 118U
#define B01110110 118U
#define B1110111 119U
#define B01110111 119U
#define B1111000 120U
#define B01111000 120U
#define B1111001 121U
#define B01111001 121U
#define B1111010 122U
#define B01111010 122U
#define B1111011 123U
#define B01111011 123U
#define B1111100 124U
#define B01111100 124U
#define B1111101 125U
#define B01111101 125U
#define B1111110 126U
#define B01111110 126U
#define B1111111 127U
#define B01111111 127U
#define B10000000 128U
#define B10000001 129U
#define B10000010 130U
#define B10000011 131U
#define B10000100 132U
#define B10000101 133U
#define B10000110 134U
#define B10000111 135U
#define B10001000 136U
#define B10001001 137U
#define B10001010 138U
#define B10001011 139U
#define B10001100 140U
#define B10001101 141U
#define B10001110 142U
#define B10001111 143U
#define B10010000 144U
#define B10010001 145U
#define B10010010 146U
#define B10010011 147U
#define B10010100 148U
#define B10010101 149U
#define B10010110 150U
#define B10010111 151U
#define B10011000 152U
#define B10011001 153U
#define B10011010 154U
#define B10011011 155U
#define B10011100 156U
#define B10011101 157U
#define B10011110 158U
#define B10011111 159U
#define B10100000 160U
#define B10100001 161U
#define B10100010 162U
#define B10100011 163U
#define B10100100 164U
#define B10100101 165U
#define B10100110 166U
#define B10100111 167U
#define B10101000 168U
#define B10101001 169U
#define B10101010 170U
#define B10101011 171U
#define B10101100 172U
#define B10101101 173U
#define B10101110 174U
#define B10101111 175U
#define B10110000 176U
#define B10110001 177U
#define B10110010 178U
#define B10110011 179U
#define B10110100 180U
#define B10110101 181U
#define B10110110 182U
#define B10110111 183U
#define B10111000 184U
#define B10111001 185U
#define B10111010 186U
#define B10111011 187U
#define B10111100 188U
#define B10111101 189U
#define B10111110 190U
#define B10111111 191U
#define B11000000 192U
#define B11000001 193U
#define B11000010 194U
#define B11000011 195U
#define B11000100 196U
#define B11000101 197U
#define B11000110 198U
#define B11000111 199U
#define B11001000 200U
#define B11001001 201U
#define B11001010 202U
#define B11001011 203U
#define B11001100 204U
#define B11001101 205U
#define B11001110 206U
#define B11001111 207U
#define B11010000 208U
#define B11010001 209U
#define B11010010 210U
#define B11010011 211U
#define B11010100 212U
#define B11010101 213U
#define B11010110 214U
#define B11010111 215U
#define B11011000 216U
#define B11011001 217U
#define B11011010 218U
#define B11011011 219U
#define B11011100 220U
#define B11011101 221U
#define B11011110 222U
#define B11011111 223U
#define B11100000 224U
#define B11100001 225U
#define B11100010 226U
#define B11100011 227U
#define B11100100 228U
#define B11100101 229U
#define B11100110 230U
#define B11100111 231U
#define B11101000 232U
#define B11101001 233U
#define B11101010 234U
#define B11101011 235U
#define B11101100 236U
#define B11101101 237U
#define B11101110 238U
#define B11101111 239U
#define B11110000 240U
#define B11110001 241U
#define B11110010 242U
#define B11110011 243U
#define B11110100 244U
#define B11110101 245U
#define B11110110 246U
#define B11110111 247U
#define B11111000 248U
#define B11111001 249U
#define B11111010 250U
#define B11111011 251U
#define B11111100 252U
#define B11111101 253U
#define B11111110 254U
#define B11111111 255U

#define ________ 0x0
#define _______X 0x1
#define ______X_ 0x2
#define ______XX 0x3
#define _____X__ 0x4
#define _____X_X 0x5
#define _____XX_ 0x6
#define _____XXX 0x7
#define ____X___ 0x8
#define ____X__X 0x9
#define ____X_X_ 0xa
#define ____X_XX 0xb
#define ____XX__ 0xc
#define ____XX_X 0xd
#define ____XXX_ 0xe
#define ____XXXX 0xf
#define ___X____ 0x10
#define ___X___X 0x11
#define ___X__X_ 0x12
#define ___X__XX 0x13
#define ___X_X__ 0x14
#define ___X_X_X 0x15
#define ___X_XX_ 0x16
#define ___X_XXX 0x17
#define ___XX___ 0x18
#define ___XX__X 0x19
#define ___XX_X_ 0x1a
#define ___XX_XX 0x1b
#define ___XXX__ 0x1c
#define ___XXX_X 0x1d
#define ___XXXX_ 0x1e
#define ___XXXXX 0x1f
#define __X_____ 0x20
#define __X____X 0x21
#define __X___X_ 0x22
#define __X___XX 0x23
#define __X__X__ 0x24
#define __X__X_X 0x25
#define __X__XX_ 0x26
#define __X__XXX 0x27
#define __X_X___ 0x28
#define __X_X__X 0x29
#define __X_X_X_ 0x2a
#define __X_X_XX 0x2b
#define __X_XX__ 0x2c
#define __X_XX_X 0x2d
#define __X_XXX_ 0x2e
#define __X_XXXX 0x2f
#define __XX____ 0x30
#define __XX___X 0x31
#define __XX__X_ 0x32
#define __XX__XX 0x33
#define __XX_X__ 0x34
#define __XX_X_X 0x35
#define __XX_XX_ 0x36
#define __XX_XXX 0x37
#define __XXX___ 0x38
#define __XXX__X 0x39
#define __XXX_X_ 0x3a
#define __XXX_XX 0x3b
#define __XXXX__ 0x3c
#define __XXXX_X 0x3d
#define __XXXXX_ 0x3e
#define __XXXXXX 0x3f
#define _X______ 0x40
#define _X_____X 0x41
#define _X____X_ 0x42
#define _X____XX 0x43
#define _X___X__ 0x44
#define _X___X_X 0x45
#define _X___XX_ 0x46
#define _X___XXX 0x47
#define _X__X___ 0x48
#define _X__X__X 0x49
#define _X__X_X_ 0x4a
#define _X__X_XX 0x4b
#define _X__XX__ 0x4c
#define _X__XX_X 0x4d
#define _X__XXX_ 0x4e
#define _X__XXXX 0x4f
#define _X_X____ 0x50
#define _X_X___X 0x51
#define _X_X__X_ 0x52
#define _X_X__XX 0x53
#define _X_X_X__ 0x54
#define _X_X_X_X 0x55
#define _X_X_XX_ 0x56
#define _X_X_XXX 0x57
#define _X_XX___ 0x58
#define _X_XX__X 0x59
#define _X_XX_X_ 0x5a
#define _X_XX_XX 0x5b
#define _X_XXX__ 0x5c
#define _X_XXX_X 0x5d
#define _X_XXXX_ 0x5e
#define _X_XXXXX 0x5f
#define _XX_____ 0x60
#define _XX____X 0x61
#define _XX___X_ 0x62
#define _XX___XX 0x63
#define _XX__X__ 0x64
#define _XX__X_X 0x65
#define _XX__XX_ 0x66
#define _XX__XXX 0x67
#define _XX_X___ 0x68
#define _XX_X__X 0x69
#define _XX_X_X_ 0x6a
#define _XX_X_XX 0x6b
#define _XX_XX__ 0x6c
#define _XX_XX_X 0x6d
#define _XX_XXX_ 0x6e
#define _XX_XXXX 0x6f
#define _XXX____ 0x70
#define _XXX___X 0x71
#define _XXX__X_ 0x72
#define _XXX__XX 0x73
#define _XXX_X__ 0x74
#define _XXX_X_X 0x75
#define _XXX_XX_ 0x76
#define _XXX_XXX 0x77
#define _XXXX___ 0x78
#define _XXXX__X 0x79
#define _XXXX_X_ 0x7a
#define _XXXX_XX 0x7b
#define _XXXXX__ 0x7c
#define _XXXXX_X 0x7d
#define _XXXXXX_ 0x7e
#define _XXXXXXX 0x7f
#define X_______ 0x80
#define X______X 0x81
#define X_____X_ 0x82
#define X_____XX 0x83
#define X____X__ 0x84
#define X____X_X 0x85
#define X____XX_ 0x86
#define X____XXX 0x87
#define X___X___ 0x88
#define X___X__X 0x89
#define X___X_X_ 0x8a
#define X___X_XX 0x8b
#define X___XX__ 0x8c
#define X___XX_X 0x8d
#define X___XXX_ 0x8e
#define X___XXXX 0x8f
#define X__X____ 0x90
#define X__X___X 0x91
#define X__X__X_ 0x92
#define X__X__XX 0x93
#define X__X_X__ 0x94
#define X__X_X_X 0x95
#define X__X_XX_ 0x96
#define X__X_XXX 0x97
#define X__XX___ 0x98
#define X__XX__X 0x99
#define X__XX_X_ 0x9a
#define X__XX_XX 0x9b
#define X__XXX__ 0x9c
#define X__XXX_X 0x9d
#define X__XXXX_ 0x9e
#define X__XXXXX 0x9f
#define X_X_____ 0xa0
#define X_X____X 0xa1
#define X_X___X_ 0xa2
#define X_X___XX 0xa3
#define X_X__X__ 0xa4
#define X_X__X_X 0xa5
#define X_X__XX_ 0xa6
#define X_X__XXX 0xa7
#define X_X_X___ 0xa8
#define X_X_X__X 0xa9
#define X_X_X_X_ 0xaa
#define X_X_X_XX 0xab
#define X_X_XX__ 0xac
#define X_X_XX_X 0xad
#define X_X_XXX_ 0xae
#define X_X_XXXX 0xaf
#define X_XX____ 0xb0
#define X_XX___X 0xb1
#define X_XX__X_ 0xb2
#define X_XX__XX 0xb3
#define X_XX_X__ 0xb4
#define X_XX_X_X 0xb5
#define X_XX_XX_ 0xb6
#define X_XX_XXX 0xb7
#define X_XXX___ 0xb8
#define X_XXX__X 0xb9
#define X_XXX_X_ 0xba
#define X_XXX_XX 0xbb
#define X_XXXX__ 0xbc
#define X_XXXX_X 0xbd
#define X_XXXXX_ 0xbe
#define X_XXXXXX 0xbf
#define XX______ 0xc0
#define XX_____X 0xc1
#define XX____X_ 0xc2
#define XX____XX 0xc3
#define XX___X__ 0xc4
#define XX___X_X 0xc5
#define XX___XX_ 0xc6
#define XX___XXX 0xc7
#define XX__X___ 0xc8
#define XX__X__X 0xc9
#define XX__X_X_ 0xca
#define XX__X_XX 0xcb
#define XX__XX__ 0xcc
#define XX__XX_X 0xcd
#define XX__XXX_ 0xce
#define XX__XXXX 0xcf
#define XX_X____ 0xd0
#define XX_X___X 0xd1
#define XX_X__X_ 0xd2
#define XX_X__XX 0xd3
#define XX_X_X__ 0xd4
#define XX_X_X_X 0xd5
#define XX_X_XX_ 0xd6
#define XX_X_XXX 0xd7
#define XX_XX___ 0xd8
#define XX_XX__X 0xd9
#define XX_XX_X_ 0xda
#define XX_XX_XX 0xdb
#define XX_XXX__ 0xdc
#define XX_XXX_X 0xdd
#define XX_XXXX_ 0xde
#define XX_XXXXX 0xdf
#define XXX_____ 0xe0
#define XXX____X 0xe1
#define XXX___X_ 0xe2
#define XXX___XX 0xe3
#define XXX__X__ 0xe4
#define XXX__X_X 0xe5
#define XXX__XX_ 0xe6
#define XXX__XXX 0xe7
#define XXX_X___ 0xe8
#define XXX_X__X 0xe9
#define XXX_X_X_ 0xea
#define XXX_X_XX 0xeb
#define XXX_XX__ 0xec
#define XXX_XX_X 0xed
#define XXX_XXX_ 0xee
#define XXX_XXXX 0xef
#define XXXX____ 0xf0
#define XXXX___X 0xf1
#define XXXX__X_ 0xf2
#define XXXX__XX 0xf3
#define XXXX_X__ 0xf4
#define XXXX_X_X 0xf5
#define XXXX_XX_ 0xf6
#define XXXX_XXX 0xf7
#define XXXXX___ 0xf8
#define XXXXX__X 0xf9
#define XXXXX_X_ 0xfa
#define XXXXX_XX 0xfb
#define XXXXXX__ 0xfc
#define XXXXXX_X 0xfd
#define XXXXXXX_ 0xfe
#define XXXXXXXX 0xff

#endif /* !__MISC_BINARY_H__ */
